$primary-color: #409eff;
$primary-background-color: #ecf5ff;

*,
:after,
:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.fa-icon {
  width: auto;
  height: 1em;
  /* 或任意其它字体大小相对值 */
  /* 要在 Safari 中正常工作，需要再引入如下两行代码 */
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}

.designer-center-container {
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;

  .content {
    font-size: 18px;
    border-bottom: solid 2px #e4e7ed;
    position: relative;
    padding: 0 10px;

    .right-tools {
      border-bottom: 2px solid #e4e7ed;
      padding: 5px 0;
      i {
        margin-right: 3px;
      }
    }
  }

  .el-main {
    padding: 0;
    position: relative;
  }
}

.widget-config-container {
  position: relative;

  .el-header {
    border-bottom: solid 2px #e4e7ed;
    padding: 0px;
  }

  .config-tab {
    height: 45px;
    line-height: 45px;
    display: inline-block;
    width: 145px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    cursor: pointer;

    &.active {
      border-bottom: solid 2px $primary-color;
    }
  }

  .config-content {
    padding: 0px;
    overflow: hidden;

    .el-form-item__label {
      padding: 0;
      font-weight: 500;
    }

    .el-form-item {
      border-bottom: solid 1px #e1e1e1;
      padding-bottom: 10px;
    }
  }

  .ghost {
    background: #fff;
    border: 1px dashed $primary-color;

    &::after {
      background: #fff;
      display: block;
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
    }
  }

  ul {
    margin: 0;
    padding: 0;
  }

  li.ghost {
    list-style: none;
    font-size: 0;
    display: block;
    position: relative;
  }
}

.widget-grid-container {
  .el-form-item {
    padding-bottom: 0px;
    margin-bottom: 0px;
  }
}

.show-fields-dialog {
  .el-dialog__body {
    padding: 0px 10px;
  }
}

.designer-container {
  background-color: white;

  :deep(.el-tabs__header) {
    margin-bottom: 3px;
  }
}

.el-popover {
  padding: 0px !important;

  .tree-loading {
    background-color: rgba(255, 255, 255, 0.9);
    right: 220px;
    top: -10px;
  }
}

:deep(.config.scrollbar-wrap) {
  max-height: 750px;
  overflow-x: hidden;
  padding: 10px;
}

:deep(.widget-config.scrollbar-wrap) {
  max-height: 750px;
  overflow-x: hidden;
  padding: 10px;
}